<div class="depot-form">
	<%= error_messages_for 'order' %>
	
	<fieldset>
		<legend>Please Enter Your Details</legend>
		
		<% form_for :order, :url => { :action => :save_order } do | form | %>
			<p>
				<label for="order_name">Name:</label>
				<%= form.text_field :name, :size => 40 %>
			</p>
			<p>
				<label for="order_address">Address:</label>
				<%= form.text_area :address, :rows => 3, :cols => 40 %>
			</p>
			<p>
				<label for="order_email">eMail:</label>
				<%= form.text_field :email, :size => 40%>
			</p>
			<p>
				<label for="order_pay_type">Pay with:</label>
				<%= form.select :pay_type,
								Order::PAYMENT_TYPES,
								:prompt => "Select a payment method"
				%>
			</p>
			<%= submit_tag "Place ORder", :class => "submit" %>
		<% end %>
	</fieldset>
</div>
